package com.xrc;

public class ComputerTest {
    public static void main(String[] args) {
        Computer lenove=new Computer();
        lenove.setCpu("终极cpu");
        lenove.setMemory("32G");
        lenove.setHd("2TB");
        lenove.bootstrap();
        System.out.println("内存"+lenove.getMemory());
        fixed(lenove);
        System.out.println("内存"+lenove.getMemory());
    }
    public static void fixed(Computer computer){
        computer.setMemory("4TB");
    }
}
